import request from '@/utils/request2'

export function sendEmail(username,nickName,email,password) {
    return request({
        url: '/mail/send',
        method: 'post',
        headers: {
            isToken :false
        },
        data: {"userName":username,"nickName":nickName,"email":email,"password":password}
    })
}


export function userEmailRegister(username,nickName,email,password,code) {
    return request({
        url: '/mail/register',
        method: 'post',
        headers: {
            isToken :false
        },
        data: {"userName":username,"nickName":nickName,"email":email,"password":password,"code":code}
    })
}
